/* 
 * Author: anand
 * 
 */


#ifndef _PATH_UTIL_H
#define	_PATH_UTIL_H

#include<stdlib.h>
#include<sys/types.h>
#include<sys/stat.h>
#include<iostream>
#include<string>
#include<stdarg.h>
#include<direct.h>

class path_util {
public:
	static const char * get_working_dir();
	static bool is_valid_path(const char * path);
	static bool is_relative_path(const char *path);
	static const char * get_normalized_path(const char *abspath);
    static const char * get_absolute_path(const char * path);
    static std::string convert_to_string(double integer);
    static std::string get_file_name(std::string path_);
    static std::string get_folder_path(std::string path_);
	static char* get_home_dir();
private:


};
class log_util
{
public:
	static void log_debug(const char *fmt,...)
	{
        #ifdef _DEBUG //Visual Studios uses this as well
		va_list pArgs ;
		va_start(pArgs,fmt);
		vfprintf(stderr,fmt,pArgs);
		va_end(pArgs);
        #endif
	}
};

#endif	/* _PATH_UTIL_H */

